<script setup>
import { useChanelStore } from '@/store/chanel.js'
import { onMounted } from 'vue'
const chanelStore = useChanelStore()
const { subcount } = useChanelStore()
onMounted(
  () => {
    chanelStore.getlist()
  }
)
</script>

<template>
  <div>123</div>
  <div>{{ chanelStore.count }}</div>
  <button @click="subcount()">加加count</button>
  <ul>
    <li v-for="item in chanelStore.lists" :key="item.id" >{{ item.name }}</li>
  </ul>
</template>

<style scoped>
header {
  line-height: 1.5;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }
}
</style>
